import React from 'react'
import { Swiper } from 'react-vant';
function SwiperItem() {
    const items =  [1, 2, 3, 4].map((color, index) => (<Swiper.Item key={index} style={{ height: 150 , background:'#ac80ff'}}> {index + 1}</Swiper.Item> ));
    return (
        <div className='SwiperItem'>
            <div className="demo-swiper">
                <Swiper autoplay={2000} loop={true} >{items}</Swiper>
            </div>
        </div>
    )
}

export default SwiperItem